package com.study.modules.designPatterns.No06ObserverMode;

/**
 * 抽象观察者
 */
public abstract class AbstractObserver implements Observer {
    // 被观察者
    private Subject subject;

    public AbstractObserver(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void update(String msg) {

    }

    /**
     * 更新天气
     */
    abstract void updateWeather(String weather);
}
